﻿namespace Ganss.Excel.Tests.Data
{
    class ProductMapped
    {
        public string NameX { get; set; }
        public int NumberX { get; set; }
        public decimal PriceX { get; set; }

        public override bool Equals(object obj)
        {
            if (obj is not ProductMapped o) return false;
            return o.NameX == NameX && o.NumberX == NumberX && o.PriceX == PriceX;
        }

        public override int GetHashCode()
        {
            return (NameX + NumberX + PriceX).GetHashCode();
        }
    }
}